package com.zhoushihao.class0812;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Multi {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a1 = sc.nextInt();
        int a2 = sc.nextInt();
        int n = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        list.add(a1);
        list.add(a2);
        for (int i = 2; i < n; i++) {
            int tmp = list.get(i-1)*list.get(i-2);
            if(tmp >= 10){
                list.add(tmp/10);
                list.add(tmp%10);
            }else{
                list.add(tmp);
            }
        }
        for (int i = 0; i < n; i++) {
            if(i == n-1){
                System.out.println(list.get(i));
            }else{
                System.out.print(list.get(i)+" ");
            }
        }
    }
}
